package cn.lbwfree.day3_27;

import java.util.Scanner;

/**
 * @date:2020年3月27日
 * @author:lbwfree
 * number：BASIC-23	芯片测试
 */
public class ChipTest {
	public static void main(String[] args) {
		Scanner inScanner= new Scanner(System.in);
		int n = inScanner.nextInt();
		if(n<2||2>20)
		{
			return;
		}
		int[][] temp = new int[n][n] ;
		int[] a = new int[n]; 
		//输入数据
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < n; j++) {
				temp[i][j] = inScanner.nextInt();
			}
		}
		//判断数据
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < n; j++) {
				a[i] += temp[j][i];
			}
		}
		//输出结果
		for (int i = 0; i < n; i++) {
			if(a[i]>n/2)
			{
				System.out.print(i+1+" ");
			}
		}	
	}
}
